<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" disabled data-rule="required" data-source="xiluhouse/user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Broker_user_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-broker_user_id" disabled data-rule="required" data-source="xiluhouse/user/user/index" data-field="nickname" class="form-control selectpage" name="row[broker_user_id]" type="text" value="{$row.broker_user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Appoint_log_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-appoint_log_id" disabled class="form-control" name="row[appoint_log_id]" type="text" value="{$row.appoint_log_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('House_state')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="houseStateList" item="vo"}
            <label for="row[house_state]-{$key}"><input disabled id="row[house_state]-{$key}" name="row[house_state]" type="radio" value="{$key}" {in name="key" value="$row.house_state"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    {if condition="$row.audit_state gt 1"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Audit_state')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if condition="$row.audit_state eq 2"}
            <div class="radio">
            {foreach name="auditStateList" item="vo"}
                {if condition="$key neq 1"}
                <label for="row[audit_state]-{$key}"><input id="row[audit_state]-{$key}" name="row[audit_state]" type="radio" value="{$key}" {in name="key" value="$row.audit_state"}checked{/in} /> {$vo}</label> 
                {/if}
            {/foreach}
            </div>
            {else/}
            <div class="radio">
                {foreach name="auditStateList" item="vo"}
                <label for="row[audit_state]-{$key}"><input disabled id="row[audit_state]-{$key}" name="row[audit_state]" type="radio" value="{$key}" {in name="key" value="$row.audit_state"}checked{/in} /> {$vo}</label> 
                {/foreach}
                </div>
            {/if}

        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Discription')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discription" data-rule="required"  class="form-control" name="row[discription]" type="text" value="{$row.discription|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dissatisfaction')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dissatisfaction" class="form-control" name="row[dissatisfaction]" type="text" value="{$row.dissatisfaction|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[images]" type="textarea" value="{$row.images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-images"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Err_msg')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-err_msg" class="form-control" name="row[err_msg]" type="text" value="{$row.err_msg|htmlentities}">
        </div>
    </div>
    {if condition="$row.audit_state eq 2"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" class="form-control" step="0.01" name="row[money]" type="number" value="{$row.money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Get_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-get_money" class="form-control" step="0.01" name="row[get_money]" type="number" value="{$site.superior_money}">
        </div>
    </div>
    {/if}
    {if condition="$row.audit_state gt 2"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" disabled class="form-control" step="0.01" name="row[money]" type="number" value="{$row.money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Get_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-get_money" disabled class="form-control" step="0.01" name="row[get_money]" type="number" value="{$row.get_money|htmlentities}">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
